package pl.wr.molecule.units;

import pl.wr.core.IMass;
import pl.wr.physics.units.SI.base.kg;
import pl.wr.physics.units.quantum.mass.eV;


/**
 * Mass of molecule
 * 
 * @version 1.0
 * @author wieslaw.rodak
 *
 */
public class MoleculeMass implements IMass {

	private eV mass;
	
	@Override
	public eV getMass() {
		return mass;
	}
	
	@Override
	public void setMass(eV mass) {
		this.mass = mass;
	}

	@Override
	public kg getMassSI() {
		return mass.getSIValue();
	}

	@Override
	public void setMassSI(kg mass) {
		this.mass = new eV(mass);
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder(32);
		builder.append("MoleculeMass [mass=").append(mass).append(']');
		return builder.toString();
	}


}
